const config = {
  moduleFederation: [
    {
      name: 'backendMrg', // 模块名称
      filename: 'backend-mrg/remoteModule.js', // 打包后的文件名称
      manifest: {
        fileName: 'backend-mrg/remoteModule.json'
      },
      dts: false,
      exposes: {
        './main': '@/modules/backend-mrg/main.js'
      },
      remotes: {
        '@common': `common@${process.env.Vue_TYCOMMON_MFURL}/remoteModule.js`
      },
      shared: {}
    }
  ]
};

module.exports = config;
